import Vue from 'vue'
import Router from 'vue-router'

import  Home from '../views/Home'

import  Cate from '../views/Cate'

import  Goods from '../views/Goods'

import  User from '../views/User'

import  NotFound from '../views/NotFound'

Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    {
      path: '/',redirect:"/home",     
    },
    {
      path:"/home",component:Home
    },
    {
      path:"/cate",component:Cate
    },
    {
      path:"/goods",component:Goods
    },
    {
      path:"/user",component:User
    },
    {
      path:"*",component:NotFound
    }
  ]
})
